from calibration import *
%matplotlib inline
cal = Calibration('parameters.txt')
cal.getPiPulse(Reset = False)
cal.getQubitFreq(Reset = False)
cal.toFile('parameters.txt')
cal.getReset(Amplitudes = True, RabiAmplitudes = np.arange(1E-3, 12E-3, 1E-3),
CavityAmplitudes = np.arange(100E-3, 210E-3, 10E-3), ResetLengths = 5E-6,
ResetSpacings = 2E-6)
cal.getReset(Length = True, ResetLengths = np.arange(0, 7E-6, 0.5E-6), ResetSpacings = 2E-6) #PiPulse = True
cal.getReset(Spacing = True, ResetSpacings = np.arange(0.5E-6, 10.5E-6, 0.5E-6)) #SpacingPopulationThreshold = 5
cal.toFile('parameters.txt')
print('RabiAmplitude = ', cal._ResetRabiAmplitude)
print('CavityAmplitude = ', cal._ResetCavityAmplitude)
print('ResetLength = ', cal._ResetLength)
print('ResetSpacing = ', cal._ResetSpacing)